<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
	<title>demo</title>
	
	<script type="text/javascript" src="echarts.min.js"></script>
</head>
<body>
<div id="main" style="width: 600px; height: 400px;"></div>
<script type="text/javascript">
	var myChart=echarts.init(document.getElementById('main'));
	var option={
		 series:[{
		 	name:'来源',
		 	type:'pie',
		 	radius:'50%',
		 	data:[{value:40,name:'pc'},{value:20,name:'ps'},{value:10,name:'3dm'},
		 	{value:20,name:'xbox'},{value:10,name:'switch'}],
		 	itemStyle:{
		 	normal:{
		 		shadowBlur:200,
		 		shadowOffsetX:0,
		 		shadowOffsetY:0,
		 		shadowColor:'#333',
		 	}
		 }
		 }]
		
	};
	 
	myChart.setOption(option);
</script>
</body>
</html>